// components/publish-success/index.js
import componentBehavior from '../../../behaviors/component';
import { COMPONENT_OPTIONS } from '../../../constants/common';

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        show: {
            type: Boolean,
            value: false,
        },
    },
    data: {
    },
    methods: {
        handleClose() {
            this.setData({
                show: false,
            });
        },
        handleConfirm() {
            this.handleClose();
            this.triggerEvent('confirm');
        },
    }
})
